import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-expect-error忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

const app = createApp(App)
// 安装element-plus，并且使用中文
app.use(ElementPlus, {
  locale: zhCn,
})
// svg插件需要配置代码
import 'virtual:svg-icons-register'
//在入口文件引入src/index.ts文件,通过app.use方法安装自定义插件
import gloablComponent from './components/index'
import '@/styles/index.scss'
import router from './router'
import pinia from './store'

app.use(gloablComponent)

app.use(router)

app.use(pinia)

// import './permission'

app.mount('#app')
